home *** CD-ROM | disk | FTP | other *** search
/ Joystick Magazine 1996 May / cd joy 71No13.iso / pc / demos / eurosoc / source / digi.h < prev    next >
C/C++ Source or Header  |  1995-11-23  |  2KB  |  43 lines

  1. /* Header File for PEPSI Digital Audio */
  2.  
  3. #if     !defined(__DIGI_H)
  4. #define __DIGI_H
  5.  
  6. #include <stdio.h>
  7. #include "sos.h"
  8.  
  9. #define HSF_MONO 0
  10. #define HSF_STEREO _STEREOTOMONO
  11. #define HSF_8BIT _TRANSLATE8TO16
  12. #define HSF_16BIT _TRANSLATE16TO8
  13.  
  14. #define DIGI_PATH "DIGI\\"
  15. #define GDV_FPS 12                                    // Digital Video Frames/Second
  16.  
  17. #define IDF_VERBOSE 0x1
  18.  
  19. extern short int InitialiseDIGI(int freq,int flags);
  20. extern short int UnInitialiseDIGI(void);
  21. extern long int StartSample(void *mem,long int length,short int amp=0x7fff,short int pan=0x8000,long int freq=0x10000);
  22. extern void StopSample(long int handle);
  23. extern short int CheckSample(long int handle);
  24. extern unsigned long int GetSamplePosition(long int handle);
  25. extern void InitHardDiskSample(FILE *fp,long int offset,long int length,long int rate,long int volume,int flags,void(callback)(void)=NULL);
  26. extern long int ContinueHardDiskSample();
  27. extern void SetDIGIVolume(short int Master,short int HardDisk);
  28.  
  29. #define StopHardDiskSample() StopSample(HardDiskHandle)
  30. #define CheckHardDiskSample() CheckSample(HardDiskHandle)
  31. #define GetHardDiskSamplePosition() GetSamplePosition(HardDiskHandle)
  32.  
  33. void far cdecl HardDiskSampleCallBack(WORD wDriverHandle,WORD wAction,WORD wSampleHandle);
  34.  
  35. extern _SOS_START_SAMPLE     HardDiskSampleData;
  36. extern WORD DIGIDriverHandle;                        // Handle of driver for playing samples
  37. extern WORD DIGITimerHandle;                        // Handle of timer
  38. extern long int HardDiskHandle;                    // Store for Hard Disk Sample handle
  39.  
  40. extern _SOS_CAPABILITIES DIGICapabilities;    // Capabilites of Sound Board;
  41.  
  42. #endif  /* __DIGI_H */
  43.